﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HungFire.Net5.SysConfig
{



    public class PathService : IPathService
    {
        IOptionsMonitor<SystemPath> _options;
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="blogData"></param>
        public PathService(IOptionsMonitor<SystemPath> options)
        {
            _options = options;
        }
        public string GetPath()
        {
            return _options.CurrentValue.FilePath;
        }
    }
}
